public class Test {

    public static void main3(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addIndex(0,9);
        myLinkedList.addIndex(1,9);
        myLinkedList.addIndex(2,11);
        myLinkedList.addIndex(2,9);
        myLinkedList.addIndex(3,9);
        myLinkedList.removeAllKey(9);
        myLinkedList.disPlay();
    }

    public static void main2(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addIndex(0,9);
        myLinkedList.addIndex(1,10);
        myLinkedList.addIndex(2,11);
        myLinkedList.addIndex(2,21);
        myLinkedList.addIndex(3,12);
        myLinkedList.disPlay();
        myLinkedList.remove(21);
        myLinkedList.disPlay();

    }

    public static void main(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(14);
        myLinkedList.addFirst(25);
        myLinkedList.addFirst(57);
        myLinkedList.disPlay();
        System.out.println("----------");
        myLinkedList.addLast(45);
        myLinkedList.disPlay();


    }

}
